<!DOCTYPE html>
<html>
 {{{ html.header(out) }}}
<body>

  {{{ html.navbar(out,"/web/triggers") }}}

<div class="container overflow-hidden">
  <div class="row gy-5">
     <h4>Triggers</h4>
     <ul>
{{{
  local r = EM.refreshStatesQueue.eventQueue
  local res,size={},r.getSize()
  for i=0,size-1 do 
    local es=r.peek(i)
    if es then 
      for _,e in ipairs(es.events) do
        if not (e.type=="DevicePropertyUpdatedEvent" and e.data.property=="icon") then
            out("<li><text>%s,%s - %s</text>",html.milliStr(e.created or 0),e.type,FB.json.encode(e.data))
        end
      end
    else break end
  end
}}}
   </ul>
</div>
</div>

 {{{ html.footer(out) }}}
</body>
</html>